‫Filesystem commands of the interpreter are similar to the Linux Shell commands, Cat is used to read
‫the content of the text files.
‫Well, you can use it with a binary files as well, but you'll see meaningless characters then.
‫CD is to change directory if you want to change the location of the local system, which is calling
‫for me.
‫You can use LCD instead.
‫Download and upload commands are not similar to the Linux Shell commands, these commands are used to
‫upload a file to the victim or to download a file from the victim.
‫And it opens a text editor to edit the specified file, it looks like the editor of Linux Systems.
‫Ellis is to list the files of the victim.
‫Now, M.K. Dyax is to create a directory.
‫M.V. is to move a file from one folder to another.
‫I'll give you a hint.
‫You can use this command to rename a file.
‫TWD is to print working directory of the victim, if you'd like to see the current location of the local
‫system, you can use l.P W.D. instead.
‫Our aim is to remove a specified file.
‫Our MDR removes specified directory now, as far as I can remember, you cannot remove a folder with
‫this command unless it's empty.
‫Search is strange here, it's used to search files in the victims file system, there are several commands
‫with different names in Linux, Shell and Interpretor.
‫You can use search command to find a file in the victim's system.
‫And if you remember, MSF console has a search command which is used to find the module's exploit post
‫module's, etc. So do not confuse Interpretor Search Command, which has a totally different purpose.
‫Let's see the filesystem commands in action.
‫So as you've recognized by now, I have my interpreter session in Colly.
‫TWD tells me the working directory on the victim and we are at the root of the partition see l.P W.D.
‫shows the working directory of the local system and this example, it's Colly.
‫We're on the desktop of the user.
‫ALS is used a list of files and folders inside the working directory here at the root of the C.
‫So we can change the current location using the CD command, I'll go to Windows Folder TWD to verify
‫the location, you know, working directory changed.
‫KD with a double dot brings us one folder up and we are again in the room to see.
‫So let's create a new folder.
‫New dirt using the mkdir command.
‫US to list the files and folders, New Dirr is here, is expected.
‫Go inside the new Dürer using the CD command.
‫So I'm going to copy the text file located on the desktop of Colly into the new Dir folder of the victim.
‫So I'll use the upload command for this purpose, the first parameter is the Feilding covid.
‫And the second parameter is the location on the victim's machine for copying.
‫Now don't forget to put the double backslash in the path, so let's see if it's really uploaded unless.
‫Yes.
‫And the file is here so we can see the contents of the file with the cat come in.
‫I'll go back to the root of see again now I want to copy the audio exact bat file from the victim to
‫the local system, Colly, so we can use the download command for this purpose.
‫The first parameter is the file being copy.
‫And the second parameter is the location to put the file.
‫And I'll copy the file into the desktop of the user.
‫OK, so here's the file, double click to Open, well, it's empty.
‫This file is executed at the beginning of each boot, so if I call my back door here, I may have a
‫persistent back door on the machine, don't I?
‫I mean, you're the ethical hackers.
‫You should always think in this way, right?
‫So let's try to delete the new Dir folder, you know, that we put a file in it so the folder is not
‫empty, but I want to see whether we can delete the folder when it's not empty.
‫Using the removed directory command.
‫Yes, the directory has been deleted.
‫Unless let's use the search function to find a file on the victim's system, so I'll search, for example,
‫characteristic file.
‫Oops.
‫We have to specify the file with an F parameter.
‫Now, here are the results.